<?php
/**
 * | ---------------------------------------------------------------------------------------------------
 * | ProjectName: php
 * | ---------------------------------------------------------------------------------------------------
 * | Author：johnxu <fsyzxz@163.com>
 * | ---------------------------------------------------------------------------------------------------
 * | Home: https://www.xfjpeter.cn
 * | ---------------------------------------------------------------------------------------------------
 * | Data: 201908042019-08-04
 * | ---------------------------------------------------------------------------------------------------
 * | Desc:
 * | ---------------------------------------------------------------------------------------------------
 */

namespace app\common\validate;

use think\Validate;

class Seat extends Validate
{
    protected $rule = [
        'name' => 'require',
        'map'  => 'require',
    ];

    protected $message = [
        'name.require' => '请输入座位名称',
        'map.require'  => '请设置座位详情',
    ];

    protected $scene = [
        'add'  => ['name', 'map'],
        'edit' => ['name', 'map'],
    ];
}